package io.github.talelin.latticy.dto.maintenance;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
* @author vvboy
*/
@Data
@NoArgsConstructor
public class CreateOrUpdateMaintenanceDTO{

    private Integer acceptId;

    @NotEmpty(message = "必须传入受理序号")
    @Size(max = 50, message = "受理序号不能超过50字符")
    private String orderNumber;

    private Date orderTime;


    @NotEmpty(message = "必须传入用户名")
    @Size(max = 50, message = "用户名不能超过50字符")
    private String username;

    @NotEmpty(message = "必须传入联系电话")
    @Size(max = 50, message = "联系电话不能超过50字符")
    private String phone;

    @NotEmpty(message = "必须传入终端类型")
    @Size(max = 50, message = "终端类型不能超过50字符")
    private String type;

    @NotEmpty(message = "必须传入型号颜色")
    @Size(max = 50, message = "型号颜色不能超过50字符")
    private String model;

    @NotEmpty(message = "必须传入维修性质")
    @Size(max = 50, message = "维修性质不能超过50字符")
    private String nature;

    @NotEmpty(message = "必须传入本机号码")
    @Size(max = 50, message = "本机号码不能超过50字符")
    private String localNumber;

    @NotEmpty(message = "必须传入机身号码")
    @Size(max = 50, message = "机身号码不能超过50字符")
    private String serialNo;

    private String file;

    @NotEmpty(message = "必须传入修理内容")
    @Size(max = 50, message = "修理内容不能超过50字符")
    private String content;

    @NotEmpty(message = "必须传入更换配件")
    @Size(max = 50, message = "更换配件不能超过50字符")
    private String reAccessories;

    private BigDecimal accessoryAmount;

    private BigDecimal workAmount;

    private BigDecimal totalAmount;

    private List<String> shelf;


}
